import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
        loading:false,
        appid:"__UNI__2F9ACD2",
        version:"1.1.2",
		type:'android',//android || ios
        envType: "prod" // 正式环境：prod || dev
    },
    mutations: {
        //tf作为主动控制的参数
        switch_loading(state,tf){
			state.loading = tf;
        }
    }
})
export default store
